﻿using Exam.infranstuctrue.Dto.Request.Exam;
using Exam.infranstuctrue.Dto.Request.Question;
using Exam.infranstuctrue.Dto.Respones;
using Exam.infranstuctrue.Tools.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exam.Service.Interface
{
    [IProvider]
    public interface IQuestionServer
    {
        /// <summary>
        /// 获取试题
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="key"></param>
        /// <param name="IsBan"></param>
        /// <param name="IsPublish"></param>
        /// <returns></returns>
        Task<ApiResult> GetQuestion(int page = 1, int limit = 10, string key = "", int IsBan = -1, int IsPublish = -1);
        /// <summary>
        /// 添加试题
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> AddQuestion(List<QuestionDto> dto);
        /// <summary>
        /// 获取单个题目
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> UpdateEchoQuestion(QuestionDto dto);
        /// <summary>
        /// 删除题目
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> DeleteQuestion(List<QuestionDto> dto);
        /// <summary>
        /// 是否发布
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> IsPublish(List<QuestionDto> dto);
        /// <summary>
        /// 是否禁用
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> IsBan(List<QuestionDto> dto);
    }
}
